package com.shbatis.utils;

import com.shbatis.datasource.unpooled.UnPooledDataSource;

import java.util.Map;

public class DataSourceFactory {
    public static UnPooledDataSource createUnPooledDataSource(Map<String, String> dataSourceMap) {
        return new UnPooledDataSource(
                dataSourceMap.get("driver"),
                dataSourceMap.get("url"),
                dataSourceMap.get("username"),
                dataSourceMap.get("password")
        );
    }
}